// pages/message/message.js
Page({
  gotoMessageList: function(e) {
    const type = e.currentTarget.dataset.type;
    wx.navigateTo({
      url: `/pages/message/list?type=${type}`
    });
  }
})